﻿<Window x:Class="Zorbo.UI.LoginWin"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Zorbo - Add new login" Height="266" Width="407" ResizeMode="NoResize">
    <Grid>
        <ListBox ItemsSource="{Binding }" HorizontalAlignment="Left" Margin="12,51,0,12" Name="listBox1" Width="165">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock>
                        <Run Text="{Binding Path=Name}"/>
                        <Run Text=": "/>
                        <TextBlock Text="{Binding Path=ExternalIp}"/>
                    </TextBlock>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="189,53,0,0" Name="textBlock1" VerticalAlignment="Top">
            <Run Text="Name:      "/>
            <Run Text="{Binding Path=(SelectedItem).Name, ElementName=listBox1}"/>
        </TextBlock>
        
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="189,87,0,0" Name="textBlock2" VerticalAlignment="Top">
            <Run Text="Password:" BaselineAlignment="Center"/> 
            <PasswordBox Name="passBox" Width="130" VerticalAlignment="Stretch"/>
        </TextBlock>
        
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="189,119,0,0" Name="textBlock3" VerticalAlignment="Top">
            <Run BaselineAlignment="Center" Text="Level:       " /> 
            <ComboBox Name="cbLevel" VerticalAlignment="Stretch" Width="130">
                <ComboBoxItem Content="Moderator"/>
                <ComboBoxItem Content="Administrator"/>
                <ComboBoxItem Content="Host"/>
            </ComboBox>
        </TextBlock>
        
        <Button Content="OK" Height="23" HorizontalAlignment="Left" Margin="197,192,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />
        <Button Content="Cancel" Height="23" HorizontalAlignment="Left" Margin="298,192,0,0" Name="button2" VerticalAlignment="Top" Width="75" Click="button2_Click" />
        
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="14,13,0,0" Name="textBlock4" VerticalAlignment="Top">
            <Run Text="Find: " BaselineAlignment="Center"/> 
            <TextBox Name="txtSearch" Width="130" TextChanged="TextBox_TextChanged" />
        </TextBlock>
    </Grid>
</Window>
